package com.ball.dev.controller;


import com.ball.common.dtos.ResponseResult;
import com.ball.dev.entity.po.PostCollect;
import com.ball.dev.entity.po.PostLikes;
import com.ball.dev.service.IPostCollectService;
import com.ball.dev.service.IPostLikesService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;

/**
 *收藏
 *
 * @author lou
 * @since 2024-03-27
 */
@RestController
@RequestMapping("/postCollect")
@RequiredArgsConstructor
public class PostCollectController {
    private final IPostCollectService postCollectService;

   // 添加文章收藏
    @PostMapping("/addPostCollect")
    public ResponseResult addPostCollect(@RequestBody PostCollect postCollect)
    {
        // 调用服务层添加文章收藏
        return postCollectService.addPostCollects(postCollect);
    }


}
